home *** CD-ROM | disk | FTP | other *** search
- @echo off
- :
- : This batch file is used to process all incoming mail in
- : a Binkley/Qmail setup. To use it, just go to the
- : location in your batch file where you process incoming
- : mail, delete all of your other areafix/qmail/passout
- : commands, then add
- :
- : for Dos 3.2 or lowec:
- :
- : command/c procmail
- :
- : for Dos 3.3 or higher
- :
- : call procmail
- :
-
- c:
- cd\bink
- qm toss -ac:\bink\areas.bbs
-
- cd\pcb
- msgswap /g:c:\pcb\msgswap.cfg /i /o /t
-
- if errorlevel 3 goto index_error
- if errorlevel 2 goto error
- if errorlevel 1 goto packer
- if errorlevel 0 goto end
-
- :index_error
- rem errorlevel 3 - msgs.ndx may be missing or index file size
- rem needs to be increased in PCBsetup and run PCBpack
- c:
- cd\pcb
- pcbpack /area:0-11 /fast /kb /nc /uc
- goto end
-
- :Error
- rem errorlevel 2 - a DOS file error has occured
- echo ERROR! ERROR! ERROR!
- goto End
-
- :Packer
- rem errorlevel 1 - mail was processed
- rem you could run PCBpack if you wanted to
- rem you really don't HAVE to do anything...
- c:
- cd\pcb
- pcbpack /area:0-11 /fast /kb /nc /uc
- goto end
-
- :End
- rem errorlevel 0 - no mail to process
-
- c:
- cd\bink
-
-